//
//  LFCouponTableViewCell.m
//  LoveFruit
//
//  Created by libbbb on 16/9/27.
//  Copyright © 2016年 张令林. All rights reserved.
//

#import "LFCouponTableViewCell.h"

@implementation LFCouponTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupUI];
    }
    return self;
}



- (void)setupUI{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    UIImageView *discountImageView = [[UIImageView alloc]init];
    discountImageView.image = [UIImage imageNamed:@"未使用的优惠券"];
    [discountImageView setContentMode:UIViewContentModeScaleAspectFit];
    
    [self.contentView addSubview:discountImageView];
    
    [discountImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(@10);
        make.left.equalTo(@12);
        make.right.equalTo(@-12);
        make.height.equalTo(@110);
        
    }];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
